package com.itboye.sunsun.controller;

import android.app.Activity;
import android.content.Intent;
import android.view.View;

import com.itboye.sunsun.application.App;
import com.itboye.sunsun.luntan.FaBiaoTieZiActivity;
import com.itboye.sunsun.luntan.TieZiDetailActivity;
import com.itboye.sunsun.luntan.WoDeTieZiActivity;
import com.itboye.sunsun.message.ui.MessageActivity;
import com.itboye.sunsun.person.ui.PersonSettingActivity;

public class LoginedState implements ILoginState {

	@Override
	public void onShopMessageClick(Activity act,Object data) {
		Intent intent=new Intent(act, MessageActivity.class);
		intent.putExtra("type", "shop");
		act.startActivity(intent);
	}

//	@Override
//	public void onShopCarClick(Activity act,Object data) {
//		act.startActivity(new Intent(act, ShopCarActivity.class));
//		
//	}
//
//	@Override
//	public void onShopCustomerServiceClick(Activity act,Object data) {
//		Intent intent=new Intent(act, GouMaiZiXunActivity.class);
//		intent.putExtra("goodid",(String) data);
//		act.startActivity(intent);
//		
//	}
//
//	@Override
//	public void onGoodsCollectClick(Activity act,Object data) {
//		((GoodDetailActivity)act).onCollectClick((View)data);
//		
//	}
//
//	@Override
//	public void onAddShopCarClick(Activity act,Object data) {
//		((GoodDetailActivity)act).onJiaruGouwucheClick( );
//		
//	}
//
//	@Override
//	public void onBuyClick(Activity act,Object data) {
//		((GoodDetailActivity)act).onBuyRightClick();
//		
//	}
//
//	@Override
//	public void onGoodsShareClick(Activity act,Object data) {
//		((GoodDetailActivity)act).onShareClick();
//		
//	}

	@Override
	public void onBBSMySelfClick(Activity act,Object data) {
		act.startActivity(new Intent(act, WoDeTieZiActivity.class));
		
	}

	@Override
	public void onBBSMessageClick(Activity act,Object data) {
		Intent intent=new Intent(act, MessageActivity.class);
		intent.putExtra("type", "BBS");
		act.startActivity(intent);
		
	}

	@Override
	public void onBBSPublishMessageClick(Activity act,Object data) {
		
		((FaBiaoTieZiActivity)act).onPublicBBsClick();
	}

	@Override
	public void onBBSCommentClick(Activity act,Object data) {
		((TieZiDetailActivity)act).onCommentClick();
		
	}

	@Override
	public void onBBSPraiseClick(Activity act,Object data) {
		((TieZiDetailActivity)act).onBBsPraiseClick();
		 
	}

 

	@Override
	public void onBBSCollectClick(Activity act, Object data) {
		// TODO Auto-generated method stub
		((TieZiDetailActivity)act).onBBsCollectClick((View)data);
	}
//
//	@Override
//	public void onMyWealthClick(Activity act, Object data) {
//		Intent intent5 = new Intent();
//		intent5.setClass(App.ctx, MyWealthActivity.class);
//		act.startActivity(intent5);
//		
//	}

//	@Override
//	public void onAllOrderClick(Activity act, Object data) {
//		Intent intent0 = new Intent();
//		intent0.setClass(App.ctx, MyOrderActivity.class);
//		intent0.putExtra("fragmentCurrent", 0);
//		act.startActivity(intent0);
//		
//	}

	@Override
	public void onPointMarketClick(Activity act, Object data) {
//		Intent intent10 = new Intent();
//		intent10.setClass(App.ctx, PointMarketActivity.class);
//		act.startActivity(intent10);
		
	}

	@Override
	public void onJiangClick(Activity act, Object data) {
//		Intent intent11 = new Intent();
//		intent11.setClass(App.ctx, JiangActivity.class);
//		act.startActivity(intent11);
		
	}

	@Override
	public void onMyWordsClick(Activity act, Object data) {
		Intent intent12 = new Intent();
		intent12.setClass(App.ctx, WoDeTieZiActivity.class);
		act.startActivity(intent12);
		
	}

	@Override
	public void onSignClick(Activity act, Object data) {
		
	}

	@Override
	public void onPersonalsettingClick(Activity act, Object data) {
		Intent intent8 = new Intent();
		intent8.setClass(App.ctx, PersonSettingActivity.class);
		intent8.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
		act.startActivity(intent8);
		
	}
//
//	@Override
//	public void onMyCollectClick(Activity act, Object data) {
//		Intent intent7 = new Intent();
//		intent7.setClass(App.ctx, MyCollectActivity.class);
//		act.startActivity(intent7);
//		
//	}

	@Override
	public void onMyLocationClick(Activity act, Object data) {
		Intent intent6 = new Intent();
		intent6.putExtra("r",9);
		intent6.putExtra("g",91);
		intent6.putExtra("b",158);
		act.startActivity(intent6);
		
	}

	@Override
	public void onCustomClick(Activity act, Object data) {
//		Intent intent4 = new Intent();
//		intent4.setClass(App.ctx, CustomActivity.class);
//		intent4.putExtra("fragmentCurrent", 3);
//		act.startActivity(intent4);
		
	}

//	@Override
//	public void onPayClick(Activity act, Object data) {
//		Intent intent1 = new Intent();
//		intent1.setClass(App.ctx, MyOrderActivity.class);
//		intent1.putExtra("fragmentCurrent", 1);
//		act.startActivity(intent1);
//		
//	}
//
//	@Override
//	public void onSendClick(Activity act, Object data) {
//		Intent intent2 = new Intent();
//		intent2.setClass(App.ctx, MyOrderActivity.class);
//		intent2.putExtra("fragmentCurrent", 2);
//		act.startActivity(intent2);
//	}
//
//	@Override
//	public void onReceiveClick(Activity act, Object data) {
//		Intent intent3 = new Intent();
//		intent3.setClass(App.ctx, MyOrderActivity.class);
//		intent3.putExtra("fragmentCurrent", 3);
//		act.startActivity(intent3);
//		
//	}

	@Override
	public void onBBSJuBaoClick(Activity act, Object data) {
		((TieZiDetailActivity)act).onJuBaoCLick();
	}

	@Override
	public void onShopMoreClick(Activity act, Object data) {
		act.startActivity(new Intent(act, MessageActivity.class));
	}

	@Override
	public void onShopCarClick(Activity act, Object data) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onShopCustomerServiceClick(Activity act, Object data) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onGoodsCollectClick(Activity act, Object data) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onAddShopCarClick(Activity act, Object data) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onBuyClick(Activity act, Object data) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onGoodsShareClick(Activity act, Object data) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onMyWealthClick(Activity act, Object data) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onAllOrderClick(Activity act, Object data) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onMyCollectClick(Activity act, Object data) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onPayClick(Activity act, Object data) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onSendClick(Activity act, Object data) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onReceiveClick(Activity act, Object data) {
		// TODO Auto-generated method stub
		
	}
 

}
